package com.bestescortbedsystem.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * ses_user_order
 * @author 
 */
@Data
@ApiModel(description = "用户订单信息类")
public class SesUserOrder implements Serializable {
    /**
     * 总用户数
     */
    private Integer size;

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getSize() {
        return size;
    }


    /**
     * 该订单所属用户姓名
     */
    private String username;

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    /**
     * 床位数
     */
    private Integer cwCount;

    public void setCwCount(Integer cwCount) {
        this.cwCount = cwCount;
    }

    public Integer getCwCount() {
        return cwCount;
    }

    /**
     * 租赁次数
     */
    private Integer zlCount;

    public void setZlCount(Integer zlCount) {
        this.zlCount = zlCount;
    }

    public Integer getZlCount() {
        return zlCount;
    }

    /**
     * 总租金
     */
    private Double money;

    public void setMoney(Double money) {
        this.money = money;
    }

    public Double getMoney() {
        return money;
    }

    /**
     * 进行一个判定
     */
    private Integer panDing;
    /**
     * ID,主键PK
     */
    private Long userorderid;

    /**
     * 床租借信息表ID
     */
    private Long bedMessageid;

    /**
     * 用户表ID
     */
    private Long userUserid;

    /**
     * 订单编号
     */
    private String userordernum;

    /**
     * 订单状态:1.待支付(默认),2.已支付,3.进行中,4.已完成
     */
    private Integer userorderstatus;

    /**
     * 异常原因
     */
    private String userorderabnormal;

    /**
     * 下单时间
     */
    private String userorderstarttime;

    /**
     * 归还时间
     */
    private String userorderendtime;

    /**
     * 租借时长(计算下单时间和归还时间之差得到)
     */
    private String userorderleasetime;

    /**
     * 结算状态:1.正常结算(默认),2.异常结算
     */
    private String userordersettlementstatus;

    /**
     * 总计金额
     */
    private Float userorderrent;

    /**
     * 购买总数
     */
    private Long userordernumber;

    /**
     * 所属医院
     */
    private String hospital;

    /**
     * 所属科室
     */
    private String department;

    /**
     * 手机号
     */
    private Long phone;
    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getHospital() {
        return hospital;
    }

    public String getDepartment() {
        return department;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Long getPhone() {
        return phone;
    }

    private static final long serialVersionUID = 1L;

    public Long getUserorderid() {
        return userorderid;
    }

    public void setUserorderid(Long userorderid) {
        this.userorderid = userorderid;
    }

    public Long getBedMessageid() {
        return bedMessageid;
    }

    public void setBedMessageid(Long bedMessageid) {
        this.bedMessageid = bedMessageid;
    }

    public Long getUserUserid() {
        return userUserid;
    }

    public void setUserUserid(Long userUserid) {
        this.userUserid = userUserid;
    }

    public String getUserordernum() {
        return userordernum;
    }

    public void setUserordernum(String userordernum) {
        this.userordernum = userordernum;
    }

    public Integer getUserorderstatus() {
        return userorderstatus;
    }

    public void setUserorderstatus(Integer userorderstatus) {
        this.userorderstatus = userorderstatus;
    }

    public String getUserorderabnormal() {
        return userorderabnormal;
    }

    public void setUserorderabnormal(String userorderabnormal) {
        this.userorderabnormal = userorderabnormal;
    }

    public String getUserorderstarttime() {
        return userorderstarttime;
    }

    public void setUserorderstarttime(String userorderstarttime) {
        this.userorderstarttime = userorderstarttime;
    }

    public String getUserorderendtime() {
        return userorderendtime;
    }

    public void setUserorderendtime(String userorderendtime) {
        this.userorderendtime = userorderendtime;
    }

    public String getUserorderleasetime() {
        return userorderleasetime;
    }

    public void setUserorderleasetime(String userorderleasetime) {
        this.userorderleasetime = userorderleasetime;
    }

    public String getUserordersettlementstatus() {
        return userordersettlementstatus;
    }

    public void setUserordersettlementstatus(String userordersettlementstatus) {
        this.userordersettlementstatus = userordersettlementstatus;
    }

    public Float getUserorderrent() {
        return userorderrent;
    }

    public void setUserorderrent(Float userorderrent) {
        this.userorderrent = userorderrent;
    }

    public Long getUserordernumber() {
        return userordernumber;
    }

    public void setUserordernumber(Long userordernumber) {
        this.userordernumber = userordernumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserOrder other = (SesUserOrder) that;
        return (this.getUserorderid() == null ? other.getUserorderid() == null : this.getUserorderid().equals(other.getUserorderid()))
            && (this.getBedMessageid() == null ? other.getBedMessageid() == null : this.getBedMessageid().equals(other.getBedMessageid()))
            && (this.getUserUserid() == null ? other.getUserUserid() == null : this.getUserUserid().equals(other.getUserUserid()))
            && (this.getUserordernum() == null ? other.getUserordernum() == null : this.getUserordernum().equals(other.getUserordernum()))
            && (this.getUserorderstatus() == null ? other.getUserorderstatus() == null : this.getUserorderstatus().equals(other.getUserorderstatus()))
            && (this.getUserorderabnormal() == null ? other.getUserorderabnormal() == null : this.getUserorderabnormal().equals(other.getUserorderabnormal()))
            && (this.getUserorderstarttime() == null ? other.getUserorderstarttime() == null : this.getUserorderstarttime().equals(other.getUserorderstarttime()))
            && (this.getUserorderendtime() == null ? other.getUserorderendtime() == null : this.getUserorderendtime().equals(other.getUserorderendtime()))
            && (this.getUserorderleasetime() == null ? other.getUserorderleasetime() == null : this.getUserorderleasetime().equals(other.getUserorderleasetime()))
            && (this.getUserordersettlementstatus() == null ? other.getUserordersettlementstatus() == null : this.getUserordersettlementstatus().equals(other.getUserordersettlementstatus()))
            && (this.getUserorderrent() == null ? other.getUserorderrent() == null : this.getUserorderrent().equals(other.getUserorderrent()))
            && (this.getUserordernumber() == null ? other.getUserordernumber() == null : this.getUserordernumber().equals(other.getUserordernumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserorderid() == null) ? 0 : getUserorderid().hashCode());
        result = prime * result + ((getBedMessageid() == null) ? 0 : getBedMessageid().hashCode());
        result = prime * result + ((getUserUserid() == null) ? 0 : getUserUserid().hashCode());
        result = prime * result + ((getUserordernum() == null) ? 0 : getUserordernum().hashCode());
        result = prime * result + ((getUserorderstatus() == null) ? 0 : getUserorderstatus().hashCode());
        result = prime * result + ((getUserorderabnormal() == null) ? 0 : getUserorderabnormal().hashCode());
        result = prime * result + ((getUserorderstarttime() == null) ? 0 : getUserorderstarttime().hashCode());
        result = prime * result + ((getUserorderendtime() == null) ? 0 : getUserorderendtime().hashCode());
        result = prime * result + ((getUserorderleasetime() == null) ? 0 : getUserorderleasetime().hashCode());
        result = prime * result + ((getUserordersettlementstatus() == null) ? 0 : getUserordersettlementstatus().hashCode());
        result = prime * result + ((getUserorderrent() == null) ? 0 : getUserorderrent().hashCode());
        result = prime * result + ((getUserordernumber() == null) ? 0 : getUserordernumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userorderid=").append(userorderid);
        sb.append(", bedMessageid=").append(bedMessageid);
        sb.append(", userUserid=").append(userUserid);
        sb.append(", userordernum=").append(userordernum);
        sb.append(", userorderstatus=").append(userorderstatus);
        sb.append(", userorderabnormal=").append(userorderabnormal);
        sb.append(", userorderstarttime=").append(userorderstarttime);
        sb.append(", userorderendtime=").append(userorderendtime);
        sb.append(", userorderleasetime=").append(userorderleasetime);
        sb.append(", userordersettlementstatus=").append(userordersettlementstatus);
        sb.append(", userorderrent=").append(userorderrent);
        sb.append(", userordernumber=").append(userordernumber);
        sb.append(", hospital=").append(hospital);
        sb.append(", department=").append(department);
        sb.append(", phone=").append(phone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
